namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 基础数据 - 物料信息
    /// </summary>
    public DbSet<POProdMaterial> ProdMaterials { get; set; }
}

/// <summary>
/// 基础数据 - 物料信息
/// 表[prod_material]
/// </summary>
[Table("prod_material")]
public class POProdMaterial
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[prod_material.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 中间表 ID
    /// [prod_material.mes_id)]
    /// </summary>
    [Column("mes_id")]
    public string MesId { get; set; }
    /// <summary>
    /// SPEC码
    /// [prod_material.spec)]
    /// </summary>
    [Column("spec")]
    public string Spec { get; set; }
    /// <summary>
    /// 物料编号 ITNBR
    /// [prod_material.material_code)]
    /// </summary>
    [Column("material_code")]
    public string MaterialCode { get; set; }
    /// <summary>
    /// 物料名称 ITDSC
    /// [prod_material.material_name)]
    /// </summary>
    [Column("material_name")]
    public string MaterialName { get; set; }
    /// <summary>
    /// 规格
    /// [prod_material.material_inch)]
    /// </summary>
    [Column("material_inch")]
    public string MaterialInch { get; set; }
    /// <summary>
    /// 英寸
    /// [prod_material.inch)]
    /// </summary>
    [Column("inch")]
    public string Inch { get; set; }
    /// <summary>
    /// 轮胎子口(内径) BORE
    /// [prod_material.inside_diameter)]
    /// </summary>
    [Column("inside_diameter")]
    public decimal? InsideDiameter { get; set; }
    /// <summary>
    /// 轮胎外径 = 外周长 / 3.14
    /// [prod_material.outside_diameter)]
    /// </summary>
    [Column("outside_diameter")]
    public decimal? OutsideDiameter { get; set; }
    /// <summary>
    /// 胎胚高度 HEIGHT
    /// [prod_material.material_height)]
    /// </summary>
    [Column("material_height")]
    public decimal? MaterialHeight { get; set; }
    /// <summary>
    /// 重量 WEIGHT
    /// [prod_material.material_weight)]
    /// </summary>
    [Column("material_weight")]
    public decimal? MaterialWeight { get; set; }
    /// <summary>
    /// 重量上限 UPPER
    /// [prod_material.weight_upper)]
    /// </summary>
    [Column("weight_upper")]
    public decimal? WeightUpper { get; set; }
    /// <summary>
    /// 重量下限 LOWER
    /// [prod_material.weight_lower)]
    /// </summary>
    [Column("weight_lower")]
    public decimal? WeightLower { get; set; }
    /// <summary>
    /// 单位
    /// [prod_material.unit)]
    /// </summary>
    [Column("unit")]
    public string Unit { get; set; }
    /// <summary>
    /// 使用与否 USEYN
    /// [prod_material.useyn)]
    /// </summary>
    [Column("useyn")]
    public string Useyn { get; set; }
    /// <summary>
    /// 过期时间
    /// [prod_material.expir_time)]
    /// </summary>
    [Column("expir_time")]
    public DateTime? ExpirTime { get; set; }
    /// <summary>
    /// 过期时间（分钟）
    /// [prod_material.expir_duration)]
    /// </summary>
    [Column("expir_duration")]
    public int? ExpirDuration { get; set; }
    /// <summary>
    /// 最小过期时间（分钟）
    /// [prod_material.expir_min_duration)]
    /// </summary>
    [Column("expir_min_duration")]
    public int? ExpirMinDuration { get; set; }
    /// <summary>
    /// 冬季最大停放时间 二段胎胚最大停放时间（18~30℃）
    /// [prod_material.win_max)]
    /// </summary>
    [Column("win_max")]
    public int? WinMax { get; set; }
    /// <summary>
    /// 冬季最小停放时间 二段胎胚最小停放时间（18~30℃）
    /// [prod_material.win_min)]
    /// </summary>
    [Column("win_min")]
    public int? WinMin { get; set; }
    /// <summary>
    /// 夏季最大停放时间  二段胎胚最大停放时间（30℃以上）
    /// [prod_material.sum_max)]
    /// </summary>
    [Column("sum_max")]
    public int? SumMax { get; set; }
    /// <summary>
    /// 夏季最小停放时间二段胎胚最小停放时间（30℃以上）
    /// [prod_material.sum_min)]
    /// </summary>
    [Column("sum_min")]
    public int? SumMin { get; set; }
    /// <summary>
    /// 批次时间（分钟）
    /// [prod_material.batch_time)]
    /// </summary>
    [Column("batch_time")]
    public int? BatchTime { get; set; }
    /// <summary>
    /// 创建时间
    /// [prod_material.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [prod_material.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [prod_material.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// 抽检比例如 20%
    /// [prod_material.in_ration)]
    /// </summary>
    [Column("in_ration")]
    public string InRation { get; set; }
    /// <summary>
    /// 扫描总数 满100后归零
    /// [prod_material.scan_num)]
    /// </summary>
    [Column("scan_num")]
    public int? ScanNum { get; set; }
    /// <summary>
    /// 入库数累加
    /// [prod_material.in_num)]
    /// </summary>
    [Column("in_num")]
    public int? InNum { get; set; }
    /// <summary>
    /// 入库比例值
    /// [prod_material.ration)]
    /// </summary>
    [Column("ration")]
    public int? Ration { get; set; }
    /// <summary>
    /// 入库比例字符串
    /// [prod_material.check_num)]
    /// </summary>
    [Column("check_num")]
    public string CheckNum { get; set; }
    /// <summary>
    /// 是否翻胎（UP 不翻；Down 翻胎）
    /// [prod_material.PCSPCRBarcodePosition)]
    /// </summary>
    [Column("PCSPCRBarcodePosition")]
    public string Pcspcrbarcodeposition { get; set; }
    /// <summary>
    /// 外周长（轮胎外径 = 外周长 / 3.14）
    /// [prod_material.PCSMachineGTCirc)]
    /// </summary>
    [Column("PCSMachineGTCirc")]
    public string Pcsmachinegtcirc { get; set; }
    /// <summary>
    /// 施工表版本
    /// [prod_material.PCSSheetVersion)]
    /// </summary>
    [Column("PCSSheetVersion")]
    public string Pcssheetversion { get; set; }
    /// <summary>
    /// 手工维护（1：是；0：不是）
    /// [prod_material.manual_sign)]
    /// </summary>
    [Column("manual_sign")]
    public int? ManualSign { get; set; }
    /// <summary>
    /// 胎高 （等同 material_height）
    /// [prod_material.PCSMachineShapeSpace)]
    /// </summary>
    [Column("PCSMachineShapeSpace")]
    public string Pcsmachineshapespace { get; set; }
    /// <summary>
    /// 临期时间
    /// [prod_material.advent)]
    /// </summary>
    [Column("advent")]
    public int? Advent { get; set; }
}
